package com.wc.AlgoOJ_train.train1.c4.A416;

import java.util.Scanner;

/**
 * @Author congge
 * @Date 2024/1/10 17:56
 * @description 整数解
 * http://43.138.190.70:8888/p/A416
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = 1;
        while (sc.hasNextInt()) {
            int b = -sc.nextInt();
            int c = sc.nextInt();
            if (b == 0 && c == 0) {
                return;
            }
            if (isRight(a, b, c)) {
                System.out.println("Yes");
            } else {
                System.out.println("No");
            }
        }
    }

    static boolean isRight(int a, int b, int c) {
        double d = b * b - 4 * a * c;
        if (d < 0) {
            return false;
        } else {
            return (-b + Math.sqrt(d)) % (2 * a) == 0 || (-b - Math.sqrt(d)) % (2 * a) == 0;
        }
    }
}
